import { menuConfig } from './menu';
import { elemToHtmlConfig } from './elem-to-html';
import { renderToElemConfig } from './render-elem';
import { parseHtmlConfig } from './parse-elem-html';
import withPagePad from './plugin';
import { MENU_KEY } from './menu';

export const PAGEPAD_TYPE = 'pagePad';

// 用来注册自定义的方法
export const module = {
  menus: [menuConfig],
  renderElems: [renderToElemConfig],
  elemsToHtml: [elemToHtmlConfig],
  parseElemsHtml: [parseHtmlConfig],
  editorPlugin: withPagePad
};

// 菜单配置
export const INSERTKEYS = {
  index: 4, // 菜单顺序
  keys: [MENU_KEY]
};
